<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Fixed</title>
    <style>
        html { _background-image: url(about:blank); _background-attachment: fixed; }
        .demo { color:#fff; width: 100px; height: 100px; text-align: center; line-height: 100px; background-color: #f90; position: fixed; _position: absolute; }
        .fixed-1 {
            top: 0;
            left: 0;
            _top: expression(eval(document.documentElement.scrollTop));
        }
        .fixed-2 {
            top: 0;
            right: 0;
            _top: expression(eval(document.documentElement.scrollTop));
        }
        .fixed-3 {
            left: 0;
            bottom: 0;
            _bottom: auto;
            _top: expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
        }
        .fixed-4 {
            right: 0;
            bottom: 0;
            _bottom: auto;
            _top: expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
        }
    </style>
</head>

<body>
<div class="demo fixed-1">左上</div>
<div class="demo fixed-2">右上</div>
<div class="demo fixed-3">左下</div>
<div class="demo fixed-4">右下</div>
<div style="height:2000px;"></div>
</body>
</html>
